mirror of
https://gitee.com/ctexthuang/hyperf_rbac_framework_server_ctexthuang.git
synced 2025-12-25 18:17:49 +08:00
feat : common redis cache and common logger
This commit is contained in:
15
app/Cache/Redis/RedisKey.php
Normal file
15
app/Cache/Redis/RedisKey.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace App\Cache\Redis;
|
||||
|
||||
class RedisKey
|
||||
{
|
||||
/**
|
||||
* @param int $id
|
||||
* @return string
|
||||
*/
|
||||
public static function getAdminUserInfoKey(int $id): string
|
||||
{
|
||||
return 'admin_user:'.$id;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user