Phraseanet PHP SDK API
Interface

PhraseanetSDK\Cache\CacheFactoryInterface

interface CacheFactoryInterface

Methods

Cache create(string $type, string|null $host = null, integer|null $port = null)

Creates a Doctrine cache

DoctrineCacheAdapter createGuzzleCacheAdapter(string $type, string|null $host = null, integer|null $port = null)

Creates a GuzzleCacheAdapter

Details

at line 31
public Cache create(string $type, string|null $host = null, integer|null $port = null)

Creates a Doctrine cache

Parameters

string $type
string|null $host
integer|null $port

Return Value

Cache

Exceptions

RuntimeException

at line 44
public DoctrineCacheAdapter createGuzzleCacheAdapter(string $type, string|null $host = null, integer|null $port = null)

Creates a GuzzleCacheAdapter

Parameters

string $type
string|null $host
integer|null $port

Return Value

DoctrineCacheAdapter

Exceptions

RuntimeException