Flow PHP

PSRCacheBuckets implements BucketsStorage

Read onlyYes
FinalYes

Interfaces

BucketsStorage

Methods

__construct()  : mixed
append()  : void
get()  : Generator<string|int, Rows>
Yields the bucket back in batches - batch shape is storage-defined, consumers must not assume any particular batch size.
remove()  : void
set()  : void

Methods

__construct()

public __construct(CacheInterface $cache[, string $prefix = 'flow:buckets' ][, DateInterval|null $ttl = null ][, Serializer $serializer = new FloeSerializer() ]) : mixed
Parameters
$cache : CacheInterface
$prefix : string = 'flow:buckets'
$ttl : DateInterval|null = null
$serializer : Serializer = new FloeSerializer()

get()

Yields the bucket back in batches - batch shape is storage-defined, consumers must not assume any particular batch size.

public get(string $bucketId) : Generator<string|int, Rows>
Parameters
$bucketId : string
Return values
Generator<string|int, Rows>

remove()

public remove(string $bucketId) : void
Parameters
$bucketId : string
On this page

Search results