src/Caches/Drivers/PDODriver.php
public function put($name, $value, $lifetime = null, $timestamp = false)
    {
        if (is_null($lifetime)) {
            $lifetime = confg('cache.lifetime');
        }

        if (!$timestamp) {
            $lifetime = time() + $lifetime;
        }

        $value = $this->packing($value);

        $this->save($name, $value, $lifetime);
    }
public function put($name, $value, $lifetime = null, $timestamp = false)
    {
        if (is_null($lifetime)) {
            $lifetime = confg('cache.lifetime');
        }

        if (!$timestamp) {
            $lifetime = time() + $lifetime;
        }

        $value = $this->packing($value);

        $this->save($name, $value, $lifetime);
    }
public function put ( $ name , $ value , $ lifetime = null , $ timestamp = false ) { if ( is_null ( $ lifetime ) ) { $ lifetime = confg ( 'cache.lifetime' ) ; } if ( ! $ timestamp ) { $ lifetime = time ( ) + $ lifetime ; } $ value = $ this -> packing ( $ value ) ; $ this -> save ( $ name , $ value , $ lifetime ) ; }
Create new item cache.

@param string $name
@param mixed  $value
@param int    $lifetime

@return bool
Create new item cache .