More sophisticated storage backend implementation.

Distinction between sorted and common hash.
Optimized implementation for redis.