for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of ibrand/laravel-sms.
*
* (c) iBrand <https://www.ibrand.cc>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace iBrand\Sms\Storage;
use Cache;
/**
* Class CacheStorage.
class CacheStorage implements StorageInterface
{
* @var int
protected static $lifetime = 120;
* @param $key
* @param $value
public function set($key, $value)
Cache::put($key, $value, self::$lifetime);
}
* @param $default
* @return mixed
public function get($key, $default)
return Cache::get($key, $default);
public function forget($key)
if (Cache::has($key)) {
Cache::forget($key);