added type and size for "redis", close #274