class
Illuminate
/
Cache
/
RedisTaggedCache
You are viewing an older version of the documentation. For the latest, please visit master documentation.
RedisTaggedCache
Extends
Constants
public
REFERENCE_KEY_FOREVER string
Forever reference key.
Default: 'forever_ref'
public
REFERENCE_KEY_STANDARD string
Standard reference key.
Default: 'standard_ref'
Methods
public
put ( $key , $value , $ttl ) : bool
Store an item in the cache.
Parameters
- $key string
- $value mixed
- $ttl DateTimeInterface |DateInterval |int|null
public
increment ( $key , $value ) : int|bool
Increment the value of an item in the cache.
Parameters
- $key string
- $value mixed
public
decrement ( $key , $value ) : int|bool
Decrement the value of an item in the cache.
Parameters
- $key string
- $value mixed
public
forever ( $key , $value ) : bool
Store an item in the cache indefinitely.
Parameters
- $key string
- $value mixed
public
flush ( ) : bool
Remove all items from the cache.
protected
pushStandardKeys ( $namespace , $key ) : void
Store standard key references into store.
Parameters
- $namespace string
- $key string
protected
pushForeverKeys ( $namespace , $key ) : void
Store forever key references into store.
Parameters
- $namespace string
- $key string
protected
pushKeys ( $namespace , $key , $reference ) : void
Store a reference to the cache key against the reference key.
Parameters
- $namespace string
- $key string
- $reference string
protected
deleteForeverKeys ( ) : void
Delete all of the items that were stored forever.
protected
deleteStandardKeys ( ) : void
Delete all standard items.
protected
deleteKeysByReference ( $reference ) : void
Find and delete all of the items that were stored against a reference.
Parameters
- $reference string
protected
deleteValues ( $referenceKey ) : void
Delete item keys that have been stored against a reference.
Parameters
- $referenceKey string
protected
referenceKey ( $segment , $suffix ) : string
Get the reference key for the segment.
Parameters
- $segment string
- $suffix string