Helpers

Currentry three helpers exist:

coralillo.utils.to_pipeline(redis)[source]

If the argument is a redis connection this function makes a redis pipeline from it. Otherwise it returns the object passed, so it ensures it is a pipeline

coralillo.utils.snake_case(string)[source]

Takes a string that represents for example a class name and returns the snake case version of it. It is used for model-to-key conversion

coralillo.utils.camelCase(string)[source]

Takes a string that represents the redis key version of a model name and returns its camel case version. It is used for key-to-model conversion.