remove

Remove item if don't readonly

remove(key)

Parameters

key
{string} name of the key you want to delete

Return

This method return a boolean

Exemples

OhMyCache.Local.set('key', 'value')
OhMyCache.Local.get('key') // 'value'

OhMyCache.Local.remove('key') // true

OhMyCache.Local.get('key') // null


// ReadOnly

OhMyCache.Local.set('key', 'value', {readonly: true})
OhMyCache.Local.get('key') // 'value'

OhMyCache.Local.remove('key') // false

OhMyCache.Local.get('key') // 'value'