Quasi-equivalent (superior in some repects) to Java's HashSet. Uses memcached as a storage mechanism for persisting set data beyond the scope of the current request.
Located in /CacheSet.php (line 47)
| Class | Description |
|---|---|
| LinkedCacheSet | Quasi-equivalent (superior in some repects) to Java's LinkedHashSet. Uses memcached as a storage mechanism for persisting set data beyond the scope of the current request. |
Class constructor
Class destructor
Adds the specified element to the end of the set.
Returns true if the specified element is contained within the set, or false otherwise.
Creates a copy (clone) of the internal set. As changes to the copy are not persisted in the cache, this is used mainly for performing read/sort operations externally on the set.
Deletes and returns the specified element from the set, or returns null if the element does not exist.
Returns the specified element from the set, or null if the element does not exist.
Returns the index of the element referenced by the specified key from the set, or -1 if the key does not exist.
Updates the specified element's value within the set.
CacheSet's internal sorting facility, which uses PHP's array value sorting functions. The default assumes a non-associative set, and sorts in ascending order of values.
CacheSet's internal sorting facility, which uses PHP's array key sorting functions. The default sorts in ascending order of keys.
Updates the internal set. Useful in conjunction with copy() if advanced sorting operations are required on the set - simply use copy() to create a local clone of the set, perform the necessary operations on the clone, then use update() to refresh the structure and contents of the set.
Returns the value of the element referenced by the specified key from the set, or null if the key does not exist.
Documentation generated on Thu, 14 Feb 2008 09:14:27 -0500 by phpDocumentor 1.4.1