RouteCachePersister
in package
Read onlyYes
FinalYes
Tags
Table of Contents
Methods
- __construct() : mixed
- clear() : void
- load() : array<int, Route>|null
- Returns the cached routes, or null on miss.
- save() : void
- Persist the string-handler subset of the given routes.
Methods
__construct()
public
__construct(CacheInterface $cache, string $key) : mixed
Parameters
- $cache : CacheInterface
- $key : string
clear()
public
clear() : void
load()
Returns the cached routes, or null on miss.
public
load() : array<int, Route>|null
Return values
array<int, Route>|nullsave()
Persist the string-handler subset of the given routes.
public
save(array<int, Route> $routes) : void
Parameters
- $routes : array<int, Route>