Cache
trait Cache
Properties
| string | $cachePrefix | Prefix for cache keys. |
|
| int|null | $cacheTimeStamp | Timestamp of the cached data. |
Methods
void
setCachePrefix(string $string)
Set the cache prefix.
string
getCacheKey()
Generate a unique cache key for the current user and table.
void
cacheData()
Cache the current user data.
void
clearData()
Clear the cached data for this table.
mixed
getCachedData()
Retrieve cached data.
void
updateCacheData(mixed $data)
Update the cached data with new data.
Details
at line 26
void
setCachePrefix(string $string)
Set the cache prefix.
at line 36
protected string
getCacheKey()
Generate a unique cache key for the current user and table.
at line 50
void
cacheData()
Cache the current user data.
Stores the data in the cache for 60 minutes and updates the timestamp.
at line 64
void
clearData()
Clear the cached data for this table.
at line 76
mixed
getCachedData()
Retrieve cached data.
If cache is missing, it attempts to re-initialize the component (mount).
at line 93
void
updateCacheData(mixed $data)
Update the cached data with new data.
Clears current selection and updates the cache with the new data set.