What's the purpose of this method? It looks like custom functionality.

You are using eval on values that are coming from Redis, that's potentially insecure.