PHP Интерфейс ManaPHP\Store\AdapterInterface

Показать файл Открыть проект Примеры использования интерфейса

Открытые методы

Метод Описание
delete ( string $id ) Deletes a value with the specified id from store
exists ( string $id ) : boolean Checks whether a specified id exists in the store.
get ( string $id ) : string | false Retrieves a value from store with a specified id.
set ( string $id, string $value ) : void Stores a value identified by a id into store.

Описание методов

delete() публичный Метод

Deletes a value with the specified id from store
public delete ( string $id )
$id string

exists() публичный Метод

Checks whether a specified id exists in the store.
public exists ( string $id ) : boolean
$id string
Результат boolean

get() публичный Метод

Retrieves a value from store with a specified id.
public get ( string $id ) : string | false
$id string
Результат string | false

set() публичный Метод

Stores a value identified by a id into store.
public set ( string $id, string $value ) : void
$id string
$value string
Результат void