1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-13 21:24:02 +00:00

Add more storage features

This commit is contained in:
Samuel Štancl 2019-01-21 18:19:01 +01:00
parent 1fe599966b
commit 14f415914f
3 changed files with 53 additions and 8 deletions

View file

@ -83,9 +83,20 @@ class RedisStorageDriver implements StorageDriver
return $this->redis->hget("tenants:$uuid", $key);
}
public function getMany(string $uuid, array $keys)
{
return $this->redis->hmget("tenants:$uuid", $keys);
}
public function put(string $uuid, string $key, $value)
{
$this->redis->hset("tenants:$uuid", $key, $value);
return $value;
}
public function putMany(string $uuid, string $values)
{
$this->redis->hmset("tenants:$uuid", $values);
return $values;
}
}