summaryrefslogtreecommitdiff
path: root/packages/frontend/src/cache.ts
diff options
context:
space:
mode:
authorかっこかり <67428053+kakkokari-gtyih@users.noreply.github.com>2024-05-27 17:19:09 +0900
committerGitHub <noreply@github.com>2024-05-27 17:19:09 +0900
commitd013e4516d7afb6ed4362467f69df2d79b9f0f9f (patch)
tree295bb73c34e6ade1e96831d91fb17a995eaed191 /packages/frontend/src/cache.ts
parentenhance(backend): プロフィールのリンク検証にtry-catchを追加 (... (diff)
downloadsharkey-d013e4516d7afb6ed4362467f69df2d79b9f0f9f.tar.gz
sharkey-d013e4516d7afb6ed4362467f69df2d79b9f0f9f.tar.bz2
sharkey-d013e4516d7afb6ed4362467f69df2d79b9f0f9f.zip
enhance(frontend): お気に入りチャンネルをキャッシュするように (#13881)
Diffstat (limited to 'packages/frontend/src/cache.ts')
-rw-r--r--packages/frontend/src/cache.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/frontend/src/cache.ts b/packages/frontend/src/cache.ts
index b286528de6..bfe8fbe0e4 100644
--- a/packages/frontend/src/cache.ts
+++ b/packages/frontend/src/cache.ts
@@ -11,3 +11,4 @@ export const clipsCache = new Cache<Misskey.entities.Clip[]>(1000 * 60 * 30, ()
export const rolesCache = new Cache(1000 * 60 * 30, () => misskeyApi('admin/roles/list'));
export const userListsCache = new Cache<Misskey.entities.UserList[]>(1000 * 60 * 30, () => misskeyApi('users/lists/list'));
export const antennasCache = new Cache<Misskey.entities.Antenna[]>(1000 * 60 * 30, () => misskeyApi('antennas/list'));
+export const favoritedChannelsCache = new Cache<Misskey.entities.Channel[]>(1000 * 60 * 30, () => misskeyApi('channels/my-favorites', { limit: 100 }));