utilities for redis-rb to facilitate lua scripting