mirror of
https://github.com/Teamlinker/Teamlinker.git
synced 2025-06-03 03:00:17 +00:00
14 lines
571 B
TypeScript
14 lines
571 B
TypeScript
import { ECommon_Services } from '../../../../common/types';
|
|
import { IServer_Common_Nacos_Instance } from './../../types/nacos';
|
|
import { RedisStringKey } from './base';
|
|
import {cacheRedisType} from "../../types/cache"
|
|
import StringUtil from "../../util/string"
|
|
export namespace REDIS_GATEWAY {
|
|
let INSTANCE_KEY=`${ECommon_Services.GateWay}:instance:{0}`
|
|
export function instance(key:string)
|
|
{
|
|
let obj=new RedisStringKey(StringUtil.format(INSTANCE_KEY,key),cacheRedisType<IServer_Common_Nacos_Instance[]>().Object)
|
|
|
|
return obj
|
|
}
|
|
} |