add convenience memoryStorage method.