@itd-api/cache / CacheOptions
Interface: CacheOptions
Defined in: packages/cache/src/plugin.ts:29
Настройки плагина.
Properties
deduplicate?
ts
optional deduplicate?: boolean;Defined in: packages/cache/src/plugin.ts:37
Объединять ли одновременные одинаковые запросы. По умолчанию true.
maxEntries?
ts
optional maxEntries?: number;Defined in: packages/cache/src/plugin.ts:35
Максимальное количество ответов. По умолчанию 500.
routes
ts
routes: readonly (
| "auth.sessions"
| "users.me"
| "users.checkUsername"
| "users.search"
| "users.whoToFollow"
| "users.topClans"
| "users.followers"
| "users.following"
| "users.blocked"
| "users.getPrivacy"
| "users.pins"
| "users.followStatus"
| "users.get"
| "posts.list"
| "posts.likedByUser"
| "posts.byUser"
| "posts.comments"
| "posts.stats"
| "posts.get"
| "comments.replies"
| "notifications.list"
| "notifications.count"
| "notifications.getSettings"
| "hashtags.search"
| "hashtags.trending"
| "hashtags.posts"
| "search.all"
| "files.get"
| "subscription.status"
| "subscription.methods"
| "verification.status"
| "platform.changelog"
| "platform.announcements"
| "platform.portal"
| "platform.status")[];Defined in: packages/cache/src/plugin.ts:33
Какие операции itd-api кэшировать.
ttl
ts
ttl: number;Defined in: packages/cache/src/plugin.ts:31
Сколько миллисекунд хранить успешный ответ.