use redis class