added static and tested with redis