Browse Source

fix: move prefix to NocoCache

pull/7464/head
mertmit 11 months ago
parent
commit
9cee84bb20
  1. 2
      packages/nocodb/src/cache/NocoCache.ts
  2. 1
      packages/nocodb/src/cache/RedisCacheMgr.ts
  3. 1
      packages/nocodb/src/cache/RedisMockCacheMgr.ts

2
packages/nocodb/src/cache/NocoCache.ts vendored

@ -98,7 +98,7 @@ export default class NocoCache {
direction: string,
): Promise<boolean> {
if (this.cacheDisabled) return Promise.resolve(true);
return this.client.deepDel(scope, key, direction);
return this.client.deepDel(scope, `${this.prefix}:${key}`, direction);
}
public static async appendToList(

1
packages/nocodb/src/cache/RedisCacheMgr.ts vendored

@ -236,7 +236,6 @@ export default class RedisCacheMgr extends CacheMgr {
key: string,
direction: string,
): Promise<boolean> {
key = `${this.prefix}:${key}`;
log(`RedisCacheMgr::deepDel: choose direction ${direction}`);
if (direction === CacheDelDirection.CHILD_TO_PARENT) {
// given a child key, delete all keys in corresponding parent lists

1
packages/nocodb/src/cache/RedisMockCacheMgr.ts vendored

@ -234,7 +234,6 @@ export default class RedisMockCacheMgr extends CacheMgr {
key: string,
direction: string,
): Promise<boolean> {
key = `${this.prefix}:${key}`;
log(`RedisMockCacheMgr::deepDel: choose direction ${direction}`);
if (direction === CacheDelDirection.CHILD_TO_PARENT) {
// given a child key, delete all keys in corresponding parent lists

Loading…
Cancel
Save