RepositoryCache
in package
Table of Contents
- $memory : array<string|int, mixed>
- __construct() : mixed
- add() : mixed
- adds element to cache
- get() : Model|null
- gets element from cache
Properties
$memory
private
array<string|int, mixed>
$memory
Methods
__construct()
public
__construct() : mixed
Return values
mixed —add()
adds element to cache
public
add(string $key, Model $item) : mixed
Parameters
- $key : string
- $item : Model
Return values
mixed —get()
gets element from cache
public
get(string $key) : Model|null
Parameters
- $key : string