Modules

Kohana_Cache_Tagging

This class is a transparent base class for Cache_Tagging and should not be accessed directly.

Kohana Cache Tagging Interface

package
Kohana/Cache
category
Base
author
Kohana Team
copyright
© 2009-2012 Kohana Team
license
http://kohanaphp.com/license

Class declared in MODPATH/cache/classes/Kohana/Cache/Tagging.php on line 11.

Constants

  • None

Properties

  • None

Methods

abstract public delete_tag( string $tag ) (defined in Kohana_Cache_Tagging)

Delete cache entries based on a tag

Parameters

  • string $tag required - Tag

Source Code

public function delete_tag($tag);

abstract public find( string $tag ) (defined in Kohana_Cache_Tagging)

Find cache entries based on a tag

Parameters

  • string $tag required - Tag

Return Values

  • array

Source Code

public function find($tag);

abstract public set_with_tags( string $id , mixed $data [, integer $lifetime = NULL , array $tags = NULL ] ) (defined in Kohana_Cache_Tagging)

Set a value based on an id. Optionally add tags.

Note : Some caching engines do not support tagging

Parameters

  • string $id required - Id
  • mixed $data required - Data
  • integer $lifetime = NULL - Lifetime [Optional]
  • array $tags = NULL - Tags [Optional]

Return Values

  • boolean

Source Code

public function set_with_tags($id, $data, $lifetime = NULL, array $tags = NULL);