def get(self, key, timeout=None):
key = self.pre_identifier + key<EOL>unpickled_entry = self.client.get(key)<EOL>if not unpickled_entry:<EOL><INDENT>return None<EOL><DEDENT>entry = pickle.loads(unpickled_entry)<EOL>if timeout is None:<EOL><INDENT>timeout = self.timeout<EOL><DEDENT>if self._is_expired(entry, timeout):<EOL><INDENT>self.delete_entry(key)<EOL>return None<EOL><DEDENT>return entry[<NUM_LIT:1>]<EOL>
Given a key, returns an element from the redis table