Silviooosilva\CacheerPhp\CacheerThe package's main class, used for all caching operations.
Starts a customized configuration for CacheerPHP.
It allows you to define the different backends available for use.
The OptionBuilder simplifies configuration via fluent builders per driver:
OptionBuilder::forFile()→ File options (dir,expirationTime,flushAfter)OptionBuilder::forRedis()→ Redis options (setNamespace, defaultexpirationTime,flushAfterauto-flush)OptionBuilder::forDatabase()→ Database options (table, defaultexpirationTime,flushAfterauto-flush)
Notes:
expirationTimeacts as default TTL when you omit a TTL inputCache()(or pass 3600). Explicit TTL values other than 3600 override the default.flushAftertriggers an auto-flush check when the store initializes; if the interval has elapsed, the store callsflushCache().
Built-in methods to reduce storage space and secure cached data.
API Reference - Compression & Encryption
Group keys under tags and invalidate them efficiently across drivers.
API Reference - Cache Functions (tag/flushTag)
See a complete usage example in: Tagging