import { RedisKeys } from '~/constants/cache.constant' ; export const getRedisKey = ( key , ... concatKeys ) : `mx:${ RedisKeys }${ string | '' }` => { return `mx:${ key }${ concatKeys && concatKeys . length ? '_' + concatKeys . join ( '_' ) : '' }` ; } ;