python import memcache client = memcache.Client(['localhost:11211']) def cache_data(key, value, expiration_time): client.set(key, value, time=expiration_time) def get_data(key): return client.get(key)