import StorageInterface from "./StorageInterface" ; augments StorageInterface memberof export default class MemoryStorageInterface extends StorageInterface { _store : { [ property ] : string ; } = { } ; returns memberof getAllKeys ( ) { return Promise . resolve ( Object . keys ( this . _store ) ) ; } param name returns memberof getValue ( name ) { const value = this . _store . hasOwnProperty ( name ) ? this . _store [ name ] : null ; return Promise . resolve ( value ) ; } param name returns memberof removeKey ( name ) { this . _store [ name ] = undefined ; delete this . _store [ name ] ; return Promise . resolve ( ) ; } param name param value returns memberof setValue ( name , value ) { this . _store [ name ] = value ; return Promise . resolve ( ) ; } }