Item

Implements \Psr\Cache\CacheItemInterface

Cache item instance for the Joomla Framework.

deprecated
since

1.0

deprecated

The joomla/cache package is deprecated

Methods

__construct

Class constructor.

__construct(string $key) 
since

1.0

Arguments

$key

stringThe key for the cache item.

getKey

Get the key associated with this CacheItem.

getKey() : string
since

1.0

Response

string

getValue

Obtain the value of this cache item.

getValue() : mixed
since

1.0

Response

mixed

isHit

This boolean value tells us if our cache item is currently in the cache or not.

isHit() : boolean
since

1.0

Response

boolean

setValue

Set the value of the item.

setValue(mixed $value) : void

If the value is set, we are assuming that there was a valid hit on the cache for the given key.

since

1.0

Arguments

$value

mixedThe value for the cache item.

Properties

key

The key for the cache item.

since

1.0

Type(s)

string

value

The value of the cache item.

since

1.0

Type(s)

mixed

hit

Whether the cache item is value or not.

since

1.0

Type(s)

boolean