removed old tests, created new ones and format
This commit is contained in:
parent
7579afa3c3
commit
b03231b849
57 changed files with 4092 additions and 5901 deletions
10
libs/core/cache/src/key-generator.ts
vendored
10
libs/core/cache/src/key-generator.ts
vendored
|
|
@ -71,3 +71,13 @@ export class CacheKeyGenerator {
|
|||
return Math.abs(hash).toString(36);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Simple key generator function
|
||||
*/
|
||||
export function generateKey(...parts: (string | number | boolean | undefined)[]): string {
|
||||
return parts
|
||||
.filter(part => part !== undefined)
|
||||
.map(part => String(part))
|
||||
.join(':');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue