Skip to content

Commit

Permalink
change string type
Browse files Browse the repository at this point in the history
  • Loading branch information
althoff0 committed Aug 21, 2024
1 parent 800ed18 commit c8017bf
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -298,10 +298,7 @@ export function create(options: RedisCacheOptions): RedisCache {
* key.getString(prefix) === "foo:user:5:session:a42799b8";
* key.getMetaString(prefix) === "foo:user:{0}:session:{1}";
*/
export function cacheKey(
strings: TemplateStringsArray,
...values: string[]
): CacheKey {
export function cacheKey(strings: string[], ...values: string[]): CacheKey {
return {
getString: (prefix: string) =>
prefix + strings.reduce((out, str, i) => out + values[i - 1] + str),
Expand Down

0 comments on commit c8017bf

Please sign in to comment.