Azu::Cache::Store
Base cache store interface
Instance methods
clear
SourceDecrement counter WARNING: Base implementation is NOT thread-safe for concurrent access MemoryStore and RedisStore override with atomic implementations
Rails-like fetch method with block support (preferred method)
Overloaded get method with block and TTL support
@deprecated Use fetch instead for Rails-like cache-aside pattern.
The get method with a block is deprecated and will be removed in a future version.
Replace: cache.get("key", ttl: 1.hour) { compute_value }
With: cache.fetch("key", ttl: 1.hour) { compute_value }
Increment counter (for stores that support it) WARNING: Base implementation is NOT thread-safe for concurrent access MemoryStore and RedisStore override with atomic implementations
Multi-set support
size
Source