Some features were added and new using styles like this one. The package version should least 1.0.13
require('parse-cache-memory').parseCacheInit();
or
const customOptions = {
max: 1000, // maximum number of items that can be stored for each class (className)
maxSize: 10000, // total maximum number of items that can be stored across all classes
ttl: 1000 * 60 * 10, // time-to-live for items in the cache, here set to 10 minutes
allowStale: true, // determines whether items can be used after their ttl has expired
updateAgeOnGet: true, // determines whether an item's age is updated when it's retrieved using "get"
updateAgeOnHas: true, // determines whether an item's age is updated when it's checked using "has"
resetCacheOnSaveAndDestroy: false, // determines whether the cache is reset when an object is saved or destroyed
};
const ParseCache = require('parse-cache-memory').parseCacheInit(customOptions)