interface Illuminate / Contracts / Cache / Store

Store

Methods

public

get ( $key ) : mixed

Retrieve an item from the cache by key.

Parameters

  • $key string|array
public

many ( array $keys ) : array

Retrieve multiple items from the cache by key.

Parameters

  • $keys array
public

put ( $key , $value , $seconds ) : bool

Store an item in the cache for a given number of seconds.

Parameters

  • $key string
  • $value mixed
  • $seconds int
public

putMany ( array $values , $seconds ) : bool

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

Parameters

  • $values array
  • $seconds int
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

forever ( $key , $value ) : bool

Store an item in the cache indefinitely.

Parameters

  • $key string
  • $value mixed
public

forget ( $key ) : bool

Remove an item from the cache.

Parameters

  • $key string
public

flush ( ) : bool

Remove all items from the cache.

public

getPrefix ( ) : string

Get the cache key prefix.