mirror of
https://gitee.com/ctexthuang/hyperf-micro-svc.git
synced 2026-02-08 10:20:16 +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