PHP Mini Documentation

CacheInterface

PHP Mini Framework

Tags
copyright

busarm.com

license

https://github.com/Busarm/php-mini/blob/master/LICENSE (MIT License)

codeCoverageIgnore

Table of Contents

flush()  : void
Delete all cache for cache id
get()  : mixed
Get cache
getTag()  : void
Get cache for tags
initialize()  : void
Initalize cache
remove()  : void
Remove cache for key
removeTag()  : void
Remove cache for tags
set()  : void
Set cache

Methods

flush()

Delete all cache for cache id

public flush() : void
Tags
Return values
void

get()

Get cache

public get(string $key) : mixed
Parameters
$key : string
Tags
Return values
mixed

getTag()

Get cache for tags

public getTag([array<string|int, mixed> $tags = [] ]) : void
Parameters
$tags : array<string|int, mixed> = []
Tags
Return values
void

initialize()

Initalize cache

public initialize(string $name[, string $size = -1 ]) : void
Parameters
$name : string

Cache name

$size : string = -1

Cache pool size. -1 for unlimited. Optional - Use if cache pooling is supported

Tags
Return values
void

remove()

Remove cache for key

public remove(string $key) : void
Parameters
$key : string
Tags
Return values
void

removeTag()

Remove cache for tags

public removeTag([array<string|int, mixed> $tags = [] ]) : void
Parameters
$tags : array<string|int, mixed> = []
Tags
Return values
void

set()

Set cache

public set(string $key, mixed $value, int $expiry[, array<string|int, mixed> $tags = [] ]) : void
Parameters
$key : string
$value : mixed
$expiry : int
$tags : array<string|int, mixed> = []
Tags
Return values
void

        

Search results