diff --git a/library/CM/Cache/Storage/Runtime.php b/library/CM/Cache/Storage/Runtime.php
index <HASH>..<HASH> 100644
--- a/library/CM/Cache/Storage/Runtime.php
+++ b/library/CM/Cache/Storage/Runtime.php
@@ -22,13 +22,13 @@ class CM_Cache_Storage_Runtime extends CM_Cache_Storage_Abstract {
 		return 'Runtime';
 	}
 
-	protected function _set($key, $value, $lifetime = null) {
-		if (null === $lifetime) {
-			$lifetime = self::LIFETIME_MAX;
+	protected function _set($key, $value, $lifeTime = null) {
+		if (null === $lifeTime) {
+			$lifeTime = self::LIFETIME_MAX;
 		} else {
-			$lifetime = max($lifetime, self::LIFETIME_MAX);
+			$lifeTime = min($lifeTime, self::LIFETIME_MAX);
 		}
-		$expirationStamp = time() + $lifetime;
+		$expirationStamp = time() + $lifeTime;
 		$this->_storage[$key] = array('value' => $value, 'expirationStamp' => $expirationStamp);
 		if ($this->_lastClearStamp + self::CLEAR_INTERVAL < time()) {
 			$this->_deleteExpired();
Fix lifetime set for Runtime (max->min, rename variable)