dhii / cache-abstract
Abstract functionality for caching.
Installs: 1 785
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- php: ^5.4 | ^7.0
Requires (Dev)
- codeclimate/php-test-reporter: <=0.3.2
- dhii/invocable-interface: ^0.1
- dhii/php-cs-fixer-config: ^0.1
- dhii/stringable-interface: ^0.1
- phpunit/phpunit: ^4.8
- psr/container: ^1.0
- ptrofimov/xpmock: ^1.1
Suggests
- dhii/callback-abstract: For structured invocation of callables
- dhii/exception: For standard exceptions and exception factory methods
- dhii/normalization-helper-base: To normalize primitives, like arrays, integers, and strings
- dhii/stringable-interface: To use objects as strings
This package is auto-updated.
Last update: 2024-10-07 03:41:11 UTC
README
Details
Abstract functionality for caching.
Traits
GetCachedCapableTrait
- Retrieves a cached value by key from self. Supports default value or value generation. Very useful for memoization. Allows specifying a TTL, if the underlying storage medium supports that.