summaryrefslogtreecommitdiff
path: root/docs/src/en/admin-guide/cache.md
diff options
context:
space:
mode:
authorSho Sakuma <me@m1sk9.dev>2026-02-23 18:46:56 +0900
committerSho Sakuma <me@m1sk9.dev>2026-02-23 18:46:56 +0900
commitf4b57c95a1622cb009eec25e64da79b139e3dcf1 (patch)
treec2ef4407725bb0bd35f63b92a2875d4a2d153525 /docs/src/en/admin-guide/cache.md
parent02574e0f606d0af3535d58b794fc5304de3ba37c (diff)
downloadLunaticChat-f4b57c95a1622cb009eec25e64da79b139e3dcf1.tar.gz
LunaticChat-f4b57c95a1622cb009eec25e64da79b139e3dcf1.tar.bz2
LunaticChat-f4b57c95a1622cb009eec25e64da79b139e3dcf1.zip
docs: Update guide
Diffstat (limited to 'docs/src/en/admin-guide/cache.md')
-rw-r--r--docs/src/en/admin-guide/cache.md41
1 files changed, 41 insertions, 0 deletions
diff --git a/docs/src/en/admin-guide/cache.md b/docs/src/en/admin-guide/cache.md
new file mode 100644
index 0000000..1148973
--- /dev/null
+++ b/docs/src/en/admin-guide/cache.md
@@ -0,0 +1,41 @@
+# 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":{}}
+```