Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/himansaBro/JungleConfig/llms.txt

Use this file to discover all available pages before exploring further.

JungleConfig’s storage backend is chosen at construction time through four factory methods and constructors on the JungleConfig class. All four modes expose exactly the same public API — the only difference is where and how entries are persisted. Picking the right mode lets you balance security, durability, and convenience without changing any application code.
JungleConfig config = new JungleConfig(new File("app.conf"));
File mode is the standard choice for production applications. Data is stored on disk in the human-readable JConfig001 format, where each entry is a key:TypeName=URLencodedValue line. The file is created automatically on the first write. Because the format is plain text, you can inspect and edit it with any text editor, track it in version control, or diff it between deployments.

Mode Comparison

ModePersistentEncryptedHuman-readableBest use case
File✅ Yes❌ No✅ YesProduction app config
Encrypted✅ Yes✅ Yes (AES-256/GCM)❌ NoSecrets & credentials
InMemory❌ No❌ NoN/ATests & ephemeral config
FlatJson❌ No❌ No❌ NoDebugging & structured in-process config
All four modes share an identical JungleConfig API. Methods like Set, get, Get, BeginTransaction, Commit, Rollback, InvalidateCache, and Backup behave the same regardless of which mode is active. You can swap modes by changing a single line of construction code without touching any other part of your application.

Build docs developers (and LLMs) love