\EasyWeChat\Kernel\TraitsInteractsWithCache

Trait InteractsWithCache.

Summary

Methods
Properties
Constants
getCache()
setCache()
No public properties found
No constants found
createDefaultCache()
$cache
N/A
No private methods found
No private properties found
N/A

Properties

$cache

$cache : \Psr\SimpleCache\CacheInterface

Type

\Psr\SimpleCache\CacheInterface

Methods

getCache()

getCache() : \Psr\SimpleCache\CacheInterface

Get cache instance.

Returns

\Psr\SimpleCache\CacheInterface

setCache()

setCache(\Psr\SimpleCache\CacheInterface  $cache) : $this

Set cache instance.

Parameters

\Psr\SimpleCache\CacheInterface $cache

Returns

$this

createDefaultCache()

createDefaultCache() : \Symfony\Component\Cache\Simple\FilesystemCache

Returns

\Symfony\Component\Cache\Simple\FilesystemCache