PHP 클래스 Bluz\Cache\Adapter\AbstractAdapter

저자: murzik
상속: implements Bluz\Cache\CacheInterface
파일 보기 프로젝트 열기: bluzphp/framework 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$settings list of Cache settings

공개 메소드들

메소드 설명
__construct ( array $settings = [] ) Setup adapter settings
add ( string $id, mixed $data, integer $ttl = Cache::TTL_NO_EXPIRY ) : boolean
contains ( string $id ) : boolean
delete ( string $id ) : mixed
flush ( ) : mixed
get ( string $id ) : mixed
set ( string $id, mixed $data, integer $ttl = Cache::TTL_NO_EXPIRY ) : boolean

보호된 메소드들

메소드 설명
doAdd ( string $id, mixed $data, integer $ttl = Cache::TTL_NO_EXPIRY ) : mixed Must be implemented in particular cache driver implementation Actual work for \Bluz\Cache\CacheInterface::add() goes here
doContains ( string $id ) : mixed Must be implemented in particular cache driver implementation Actual work for \Bluz\Cache\CacheInterface::contains() goes here
doDelete ( string $id ) : mixed Must be implemented in particular cache driver implementation Actual work for \Bluz\Cache\CacheInterface::delete() goes here
doFlush ( ) : mixed Must be implemented in particular cache driver implementation Actual work for \Bluz\Cache\CacheInterface::flush() goes here
doGet ( string $id ) : mixed Must be implemented in particular cache driver implementation Actual work for \Bluz\Cache\CacheInterface::get() goes here
doSet ( string $id, mixed $data, integer $ttl = Cache::TTL_NO_EXPIRY ) : mixed Must be implemented in particular cache driver implementation Actual work for \Bluz\Cache\CacheInterface::set() goes here

메소드 상세

__construct() 공개 메소드

Setup adapter settings
public __construct ( array $settings = [] )
$settings array setup adapter

add() 공개 메소드

public add ( string $id, mixed $data, integer $ttl = Cache::TTL_NO_EXPIRY ) : boolean
$id string
$data mixed
$ttl integer
리턴 boolean

contains() 공개 메소드

public contains ( string $id ) : boolean
$id string
리턴 boolean

delete() 공개 메소드

public delete ( string $id ) : mixed
$id string
리턴 mixed

doAdd() 추상적인 보호된 메소드

Must be implemented in particular cache driver implementation Actual work for \Bluz\Cache\CacheInterface::add() goes here
또한 보기: CacheInterface::add()
abstract protected doAdd ( string $id, mixed $data, integer $ttl = Cache::TTL_NO_EXPIRY ) : mixed
$id string
$data mixed
$ttl integer
리턴 mixed

doContains() 추상적인 보호된 메소드

Must be implemented in particular cache driver implementation Actual work for \Bluz\Cache\CacheInterface::contains() goes here
또한 보기: CacheInterface::contains()
abstract protected doContains ( string $id ) : mixed
$id string
리턴 mixed

doDelete() 추상적인 보호된 메소드

Must be implemented in particular cache driver implementation Actual work for \Bluz\Cache\CacheInterface::delete() goes here
또한 보기: CacheInterface::delete()
abstract protected doDelete ( string $id ) : mixed
$id string
리턴 mixed

doFlush() 추상적인 보호된 메소드

Must be implemented in particular cache driver implementation Actual work for \Bluz\Cache\CacheInterface::flush() goes here
또한 보기: Bluz\Cache\CacheInterface::flush()
abstract protected doFlush ( ) : mixed
리턴 mixed

doGet() 추상적인 보호된 메소드

Must be implemented in particular cache driver implementation Actual work for \Bluz\Cache\CacheInterface::get() goes here
또한 보기: CacheInterface::get()
abstract protected doGet ( string $id ) : mixed
$id string
리턴 mixed

doSet() 추상적인 보호된 메소드

Must be implemented in particular cache driver implementation Actual work for \Bluz\Cache\CacheInterface::set() goes here
또한 보기: CacheInterface::set()
abstract protected doSet ( string $id, mixed $data, integer $ttl = Cache::TTL_NO_EXPIRY ) : mixed
$id string
$data mixed
$ttl integer
리턴 mixed

flush() 공개 메소드

public flush ( ) : mixed
리턴 mixed

get() 공개 메소드

public get ( string $id ) : mixed
$id string
리턴 mixed

set() 공개 메소드

public set ( string $id, mixed $data, integer $ttl = Cache::TTL_NO_EXPIRY ) : boolean
$id string
$data mixed
$ttl integer
리턴 boolean

프로퍼티 상세

$settings 보호되어 있는 프로퍼티

list of Cache settings
protected $settings