example

command
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 10, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Command example is a standalone runnable demonstration of every grcache backend. It is package main, in the same module as grcache itself, and is not part of the library's test surface — mirrors gourdiantoken's own example/example.go convention.

The memory backend always runs (no external service required). The four networked backends (Redis, memcached, PostgreSQL, MongoDB) each attempt to connect using this repo's documented local dev settings (see CLAUDE.md) and print "skipping <backend>: <err>" instead of failing if the corresponding service isn't running, so this program always completes standalone.

Run with: go run ./example

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL