Repository (Contracts)

Repository

interface Repository (View source)

Methods

登录查看完整内容
bool has(string $key)

Determine if an item exists in the cache.

mixed get(string $key, mixed $default = null)

Retrieve an item from the cache by key.

mixed pull(string $key, mixed $default = null)

Retrieve an item from the cache and delete it.