RavSystem API docs

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

Methods

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
Return values
Model|null

Search results