Extract redis func