Overtrue\LaravelWechat\CacheBridge::save PHP Method

save() public method

If a cache entry with the given id already exists, its data will be replaced.
public save ( string $id, mixed $data, integer $lifeTime ) : boolean
$id string The cache id.
$data mixed The cache entry/data.
$lifeTime integer The lifetime in number of seconds for this cache entry. If zero (the default), the entry never expires (although it may be deleted from the cache to make place for other entries).
return boolean TRUE if the entry was successfully stored in the cache, FALSE otherwise.
    public function save($id, $data, $lifeTime = 0)
    {
        return Cache::put($id, $data, $lifeTime / 60);
    }