minor
implementation of a memory cache