summaryrefslogtreecommitdiff
path: root/packages/frontend/src/cache.ts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2023-03-24 16:54:37 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2023-03-24 16:54:37 +0900
commit5f52b1332514d4c2fa02ac55f0e56ff5ff147a96 (patch)
tree38f65fe3f3c59800a3a55eaab690228b2a2c5661 /packages/frontend/src/cache.ts
parentrefactor(backend): rename cache class (diff)
downloadsharkey-5f52b1332514d4c2fa02ac55f0e56ff5ff147a96.tar.gz
sharkey-5f52b1332514d4c2fa02ac55f0e56ff5ff147a96.tar.bz2
sharkey-5f52b1332514d4c2fa02ac55f0e56ff5ff147a96.zip
enhance(frontend): クリップボタンをノートアクションに追加できるように
Diffstat (limited to 'packages/frontend/src/cache.ts')
-rw-r--r--packages/frontend/src/cache.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/frontend/src/cache.ts b/packages/frontend/src/cache.ts
new file mode 100644
index 0000000000..1a8df7fcf6
--- /dev/null
+++ b/packages/frontend/src/cache.ts
@@ -0,0 +1,5 @@
+import * as misskey from 'misskey-js';
+import { Cache } from '@/scripts/cache';
+
+export const clipsCache = new Cache<misskey.entities.Clip[]>(Infinity);
+export const rolesCache = new Cache(Infinity);