class Illuminate / Cache / TaggedCache
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.

TaggedCache

Extends

Uses

Properties

protected

$tags TagSet

The tag set instance.

Default: null

Methods

public

__construct ( Store $store , TagSet $tags ) : void

Create a new tagged cache instance.

Parameters

public

putMany ( array $values , $ttl ) : bool

Store multiple items in the cache for a given number of seconds.

Parameters

  • $values array
  • $ttl int|null
public

increment ( $key , $value ) : int|bool

Increment the value of an item in the cache.

Parameters

  • $key string
  • $value mixed
public

decrement ( $key , $value ) : int|bool

Decrement the value of an item in the cache.

Parameters

  • $key string
  • $value mixed
public

flush ( ) : bool

Remove all items from the cache.

protected

itemKey ( $key ) : void

{@inheritdoc}

public

taggedItemKey ( $key ) : string

Get a fully qualified key for a tagged item.

Parameters

  • $key string
protected

event ( $event ) : void

Fire an event for this cache instance.

Parameters

public

getTags ( ) : TagSet

Get the tag set instance.