Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Installation

Add HydraCache to an application crate:

[dependencies]
hydracache = "0.67"

For local development inside this repository, examples use path dependencies so the documentation is checked against the branch being edited:

hydracache = { path = "../../crates/hydracache" }
hydracache-db = { path = "../../crates/hydracache-db" }

Optional Crates

HydraCache keeps adapters in separate crates so applications can opt into only the integrations they need.

CratePurpose
hydracacheCore user-facing local cache runtime.
hydracache-dbDatabase-neutral query result caching policies and helpers.
hydracache-sqlxSQLx adapter helpers.
hydracache-dieselDiesel adapter helpers.
hydracache-seaormSeaORM adapter helpers.
hydracache-redis-compatOptional Redis RESP compatibility facade primitives.
hydracache-serverStandalone server that can expose the optional Redis RESP listener.

Local Verification

Build the public docs site:

mdbook build docs-site

Check the runnable documentation examples:

cargo check --manifest-path docs-site/examples/Cargo.toml --all-targets