Liking cljdoc? Tell your friends :D

wagoe.cache.shell.adapters.in-memory

In-memory cache implementation for development and testing.

Features:

  • Thread-safe operations using Clojure atoms
  • TTL support with automatic expiration
  • LRU eviction policy
  • Statistics tracking
  • Pattern matching
  • Namespace support

Suitable for:

  • Local development without Redis
  • Fast unit testing
  • CI/CD pipelines
  • Single-process applications

NOT suitable for:

  • Distributed systems (not shared across processes)
  • Production use (no persistence)
  • High-memory workloads (limited by JVM heap)
In-memory cache implementation for development and testing.

Features:
- Thread-safe operations using Clojure atoms
- TTL support with automatic expiration
- LRU eviction policy
- Statistics tracking
- Pattern matching
- Namespace support

Suitable for:
- Local development without Redis
- Fast unit testing
- CI/CD pipelines
- Single-process applications

NOT suitable for:
- Distributed systems (not shared across processes)
- Production use (no persistence)
- High-memory workloads (limited by JVM heap)
raw docstring

wagoe.cache.shell.adapters.redis

Redis-backed distributed cache implementation.

Features:

  • Distributed caching across multiple processes
  • Automatic TTL and expiration
  • Atomic operations (INCR, DECR, SETNX)
  • Pattern matching with SCAN
  • Namespace support
  • Connection pooling

Suitable for:

  • Production deployments
  • Distributed systems
  • High-availability applications
  • Microservices architecture

Redis Data Structures Used:

  • Strings: For cache values (Nippy serialized, stored as binary)
  • TTL: Built-in Redis expiration
  • Atomic ops: INCR, DECR, SETNX, etc.
Redis-backed distributed cache implementation.

Features:
- Distributed caching across multiple processes
- Automatic TTL and expiration
- Atomic operations (INCR, DECR, SETNX)
- Pattern matching with SCAN
- Namespace support
- Connection pooling

Suitable for:
- Production deployments
- Distributed systems
- High-availability applications
- Microservices architecture

Redis Data Structures Used:
- Strings: For cache values (Nippy serialized, stored as binary)
- TTL: Built-in Redis expiration
- Atomic ops: INCR, DECR, SETNX, etc.
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close