This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import os | |
| import os.path | |
| import re | |
| import shutil | |
| import sys | |
| def clean(): | |
| dist = 'dist' |
The main methods to call are clear, read, write, delete, exist?, and fetch.
class FakeRedis
def initialize; @data = {}; end
def read(key, *args) @data[key] end
def write(key, val, *args) @data[key] = val end