Synapse V3
Synapse Base v3 - Advanced Systems Update
Major Enhancements
- Advanced Caching System – multiple cache strategies for different use cases
- Automatic Intent Detection – no need to manually configure most intents
- Command Aliasing Support – easier command access with custom aliases
- Template Generation System – quickly scaffold commands, events, and utilities
- Role Management Utilities – streamlined role hierarchy and permissions handling
- Hot Reload Improvements – safer reloads with memory leak prevention
- Enhanced Logging System – cleaner output with improved formatting and color scheme
Other Changes
- Fixed
utils/Cache/Cache.js, optimized memory usage - Fixed minor bug in
utils/ComponentHandler.jsnot updating component cache - Rewrote
utils/HotReload.jsto avoid memory leaks - Rewrote
utils/DBConnector.jsto handle MongoDB and SQLite more efficiently - Added
utils/timedCachefor efficient memory management - Added
utils/RoleUtilsfor role hierarchy management - Modified
utils/Logger.jswith improved formatting - Fixed bug in
utils/PackageChecker.jsinvolving npm installs - Logs now use new color scheme for better visibility
Caching System FAQ
Q: How do the different caches work?
There are three types:
- TimedCache – auto-expires after a set duration
- LRUCache – limited by size, automatically evicts oldest entries
- ExpiryMap – allows custom expiration dates
Q: Can I use multiple cache types?
Yes. Each serves different purposes:
- Use TimedCache for temporary data
- Use LRUCache for limited storage
- Use ExpiryMap for scheduled deletions