malkusch\lock\mutex\RedisMutex::add PHP 메소드

add() 추상적인 보호된 메소드

Sets the key only if such key doesn't exist at the server yet.
abstract protected add ( mixed $redisAPI, string $key, string $value, integer $expire ) : boolean
$redisAPI mixed The connected Redis API.
$key string The key.
$value string The value.
$expire integer The TTL seconds.
리턴 boolean True, if the key was set.
    protected abstract function add($redisAPI, $key, $value, $expire);