class Flush

Flush scanned tag members without deleting concurrently added memberships.

Skips reading reverse index and cross-tag cleanup. Orphaned hash fields are left for the scheduled cleanup command to remove later.

Constants

private CHUNK_SIZE

Methods

__construct(StoreContext $context, GetTaggedKeys $getTaggedKeys, RemoveEmptyTags $removeEmptyTags)

Create a new flush operation instance.

bool
execute(array $tags)

Execute the lazy flush.

string
flushChunkScript()

Remove only scanned fields, their reverse indexes and values atomically.

Details

at line 23
__construct(StoreContext $context, GetTaggedKeys $getTaggedKeys, RemoveEmptyTags $removeEmptyTags)

Create a new flush operation instance.

Parameters

StoreContext $context
GetTaggedKeys $getTaggedKeys
RemoveEmptyTags $removeEmptyTags

at line 36
bool execute(array $tags)

Execute the lazy flush.

Parameters

array $tags

Array of tag names to flush

Return Value

bool

True if successful, false on failure

at line 108
protected string flushChunkScript()

Remove only scanned fields, their reverse indexes and values atomically.

Return Value

string