Adding configurable caching strategy in VmCache
Issue link - #35 (closed)
Using expireAfterAccess
can cause issues where frequently used data will never get updated as it never gets evicted from Cache.
So, where ever needed, we should use expireAfterWrite
.
Added overloaded constructor to VmCache using which this can be achieved.
This MR does not break backward compatibility as default behavior will not change