Pool extends Pool
Class CachePool
Table of Contents
Methods
- __construct() : mixed
- CachePool constructor.
- addItem() : void
- cleanItems() : void
- deleteItem() : void
- getItem() : mixed
- getItems() : array<string|int, mixed>
- getItemsCount() : int
- setItems() : void
Methods
__construct()
CachePool constructor.
public
__construct(int $poolSize) : mixed
Parameters
- $poolSize : int
addItem()
public
addItem(string $index, mixed $location) : void
Parameters
- $index : string
- $location : mixed
cleanItems()
public
cleanItems() : void
deleteItem()
public
deleteItem(string $index) : void
Parameters
- $index : string
getItem()
public
getItem(string $index) : mixed
Parameters
- $index : string
getItems()
public
getItems() : array<string|int, mixed>
Return values
array<string|int, mixed>getItemsCount()
public
getItemsCount() : int
Return values
intsetItems()
public
setItems(array<string|int, mixed> $items) : void
Parameters
- $items : array<string|int, mixed>