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:
parent
1fe599966b
commit
14f415914f
3 changed files with 53 additions and 8 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue