Understand Gemstash caching and storage
mainGemstash manages data in the ~/.gemstash directory, which contains cached gems, the SQLite database, server logs, and configuration.
Caching Behavior
- Gem files (*.gem): Cached indefinitely (permanently).
- Gem dependencies metadata: Cached for 30 minutes. If you bundle again within this window, Gemstash can resolve dependencies without an internet connection.
Storage Components
- Storage Directory:
~/.gemstash(can be customized). - Database: Uses SQLite to store details about private gems. The database file appears in
~/.gemstashonce private gems are used. - Memory Cache: Gem dependencies are temporarily cached in memory for 30 minutes. This can be replaced with
memcachedfor customization.