Hash trait for Redis storage