Skip to content

CacheTask

Properties

cliDoc

public string $cliDoc

Methods

clearAction

Clears all items from the cache.

public clearAction(): bool

Return Value:

True if all items were successfully cleared, false otherwise.


hasAction

Checks if the given action key exists in the cache.

public hasAction(string $key): bool

Parameters:

Parameter Type Description
$key string The key identifying the action in the cache.

Return Value:

Returns true if the action key exists in the cache, false otherwise.

Throws:


deleteAction

Deletes an item from the cache.

public deleteAction(string $key): bool

Parameters:

Parameter Type Description
$key string The key of the item to be deleted.

Return Value:

True if the item was successfully deleted, false otherwise.

Throws:


deleteMultipleAction

Deletes multiple cache entries specified by the given keys.

public deleteMultipleAction(string $keys): bool

Parameters:

Parameter Type Description
$keys string A variable number of keys representing the cache entries to be deleted.

Return Value:

Returns true if all cache entries were successfully deleted, false otherwise.


Inherited methods

beforeExecuteRoute

public beforeExecuteRoute(): void

helpAction

public helpAction(): void

mainAction

public mainAction(): ?array

normalizeResponse

public normalizeResponse(bool $response = true, ?int $code = null, ?string $status = null): array

Parameters:

Parameter Type Description
$response bool
$code ?int
$status ?string

afterExecuteRoute

Handle rest response automagically

public afterExecuteRoute(\Phalcon\Cli\Dispatcher $dispatcher): void

Parameters:

Parameter Type Description
$dispatcher \Phalcon\Cli\Dispatcher

Throws: