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
Click to show internal directories.
Click to hide internal directories.