SharedCode / sop

Horizontally Scaleable Objects Persistence
http://sop.codeplex.com
MIT License
13 stars 4 forks source link

Added a feature to allow custom "store" caching duration config. #86

Closed grecinto closed 1 month ago

grecinto commented 1 month ago

Everything defaults to 12 hrs, see sop.GetDefaultCacheConfig(& sop.SetDefaultCacheConfig) but during creation of Btree(NewBtree function call), code can specify a custom caching duration for the store.

Example use-case, put non-expiration caching on all data of a store for the one most commonly used by end-client. Registry, Node, StoreInfo, Value Data caching can be set on each "store" level, or defaults to 12 hrs for all.