getAll

Get all items, remove all expired items

getAll()

Return

All items like {key: value, key2: value2...} (object)

Exemples

OhMyCache.Local.set('k1', 'v1')
OhMyCache.Local.set('k2', 'v2', {readonly: true})
OhMyCache.Local.set('k3', 'v3', {expire: 1})

// sleep 2 secondes or more

OhMyCache.Local.getAll() // {k1: 'v1', k2: 'v2'}