gaotiefeng / redis-application
redis operation
Installs: 189
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/gaotiefeng/redis-application
Requires
- php: >=7.2
- friendsofphp/php-cs-fixer: ^2.14
README
composer require gaotiefeng/redis-application
class testApplication extends stringApplication
{
protected $prefix = 'localhost:redis:string';
public function redis()
{
$res = new \Redis();
$res->connect('127.0.0.1','6379');
return $res;
}
public function setKey($key, $val)
{
return $this->set($key,$val);
}
}