Registry / database / hyperf-model-cache

hyperf-model-cache

JSON →
library3.1.63phppackagistunverified

A model cache component for hyperf.

composer require hyperf/model-cache
INSTALL
IMPORT
SIG · HYPERF-MODEL-CACHE
H
hyperf-model-cache
databasephpv3.1.63
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Cacheable
use Hyperf\ModelCache\Cacheable;

Add caching to a Hyperf model using the Cacheable trait

use Hyperf\ModelCache\Cacheable; class User extends Model { use Cacheable; }
Debug
Known issues
gotchaRequires Redis to be configured in Hyperf
fix
Ensure redis driver is set in config/autoload/cache.php
affects: >=3.0.0
Upgrade
Version history
3.1.63latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
37 hits · last 30 days
node
34
Resources