Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rust 0.41 KB | None | 0 0
  1.     pub fn touch(&mut self, key: &K, ttl: Option<Timestamp>, now: Timestamp) -> bool {
  2.         // update the timestamp and last-used field of a row without copying the
  3.         // whole contents
  4.         match self._get_full_entry(key, now) {
  5.             Some(full_entry) => {
  6.                 self._touch(key, full_entry, ttl, now);
  7.                 true
  8.             },
  9.             _ => false
  10.         }
  11.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement