function mset(array $vars, $prefix = '', $ttl = 0) { foreach ($vars as $key => $val) { $this->set($prefix . $key, $val, $ttl); } }