Extend CacheStore::Factory for custom storage.

Backward compatibility not broken.