Documentation

CouchbaseCollectionAdapter extends AbstractAdapter
in package

Tags
author

Antonio Jose Cerezo Aranda aj.cerezo@gmail.com

Table of Contents

MAX_KEY_LENGTH  = 250
$apcuSupported  : mixed
$connection  : Collection
$marshaller  : mixed
$phpFilesSupported  : mixed
__construct()  : mixed
commit()  : bool
{@inheritdoc}
createConnection()  : Bucket|Collection
createSystemCache()  : AdapterInterface
Returns the best possible adapter that your runtime supports.
isSupported()  : bool
doClear()  : bool
{@inheritdoc}
doDelete()  : bool
{@inheritdoc}
doFetch()  : array<string|int, mixed>
{@inheritdoc}
doHave()  : bool
{@inheritdoc}
doSave()  : mixed
{@inheritdoc}
getOptions()  : array<string|int, mixed>

Constants

Properties

Methods

__construct()

public __construct(Collection $connection[, string $namespace = '' ], int $defaultLifetime[, MarshallerInterface|null $marshaller = null ]) : mixed
Parameters
$connection : Collection
$namespace : string = ''
$defaultLifetime : int
$marshaller : MarshallerInterface|null = null
Return values
mixed

commit()

{@inheritdoc}

public commit() : bool
Return values
bool

createConnection()

public static createConnection(array<string|int, mixed>|string $dsn[, array<string|int, mixed> $options = [] ]) : Bucket|Collection
Parameters
$dsn : array<string|int, mixed>|string
$options : array<string|int, mixed> = []
Return values
Bucket|Collection

createSystemCache()

Returns the best possible adapter that your runtime supports.

public static createSystemCache(string $namespace, int $defaultLifetime, string $version, string $directory[, LoggerInterface|null $logger = null ]) : AdapterInterface

Using ApcuAdapter makes system caches compatible with read-only filesystems.

Parameters
$namespace : string
$defaultLifetime : int
$version : string
$directory : string
$logger : LoggerInterface|null = null
Return values
AdapterInterface

doClear()

{@inheritdoc}

protected doClear(mixed $namespace) : bool
Parameters
$namespace : mixed
Return values
bool

doDelete()

{@inheritdoc}

protected doDelete(array<string|int, mixed> $ids) : bool
Parameters
$ids : array<string|int, mixed>
Return values
bool

doFetch()

{@inheritdoc}

protected doFetch(array<string|int, mixed> $ids) : array<string|int, mixed>
Parameters
$ids : array<string|int, mixed>
Return values
array<string|int, mixed>

doSave()

{@inheritdoc}

protected doSave(array<string|int, mixed> $values, mixed $lifetime) : mixed
Parameters
$values : array<string|int, mixed>
$lifetime : mixed
Return values
mixed

getOptions()

private static getOptions(string $options) : array<string|int, mixed>
Parameters
$options : string
Return values
array<string|int, mixed>

Search results