diff options
| author | Sho Sakuma <me@m1sk9.dev> | 2026-04-04 22:04:30 +0900 |
|---|---|---|
| committer | Sho Sakuma <me@m1sk9.dev> | 2026-04-04 22:04:30 +0900 |
| commit | 07de51b69d0038a99e10582abfa1a3fe7e3616fc (patch) | |
| tree | 9c4dce081741e44c5e9729e19fc12cd2a0c0f354 /docs/src/en/admin-guide/cache.md | |
| parent | bd92ba60d39b4956a580cc56b83ecf55dd348aea (diff) | |
| download | LunaticChat-07de51b69d0038a99e10582abfa1a3fe7e3616fc.tar.gz LunaticChat-07de51b69d0038a99e10582abfa1a3fe7e3616fc.tar.bz2 LunaticChat-07de51b69d0038a99e10582abfa1a3fe7e3616fc.zip | |
docs: Archive v0 docs
Diffstat (limited to 'docs/src/en/admin-guide/cache.md')
| -rw-r--r-- | docs/src/en/admin-guide/cache.md | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/docs/src/en/admin-guide/cache.md b/docs/src/en/admin-guide/cache.md deleted file mode 100644 index 5142a9e..0000000 --- a/docs/src/en/admin-guide/cache.md +++ /dev/null @@ -1,41 +0,0 @@ -# Cache System - -LunaticChat includes a system that automatically caches phrases from Japanese romanization conversion to both memory and disk. - -For information on Japanese romanization conversion, see [here](../player-guide/japanese-romanization.md). - -## Memory Cache - -LunaticChat caches converted phrases in memory, allowing for fast responses when the same phrase is requested again. - -This cache is temporary and is saved to disk cache at server restart or at configured intervals. - -## Disk Cache - -LunaticChat periodically saves the contents of the memory cache to disk. This allows the cache contents to be retained even after server restarts. - -The file used for disk cache can be [changed in the configuration](configuration.md#cachefilepath). - -## Cache Release - -Memory cache is automatically released by the JVM's garbage collection after being cached to disk. - -Disk cache can be released by manually deleting the file. LunaticChat will recreate the cache file on restart. - -::: warning About Purge Functionality - -LunaticChat does not implement a cache purge feature. - -This is because allowing players to manipulate the host's file system is not desirable from a security perspective. - -::: - -## Cache Version - -The file used for disk cache includes a `version` field, which handles changes to the cache format due to LunaticChat version updates. - -If the version does not match, LunaticChat recognizes the cache file as **an old format cache**, ignores its contents, and recreates it in the new format. - -```json -{ "version": "1", "entries": {} } -``` |
