public function set($type, $key, $value, $expire = null)
    {
        self::$store[$key] = [
            'type' => $type,
            'value' => $value,
            'expire' => $expire
        ];
    }
public function set($type, $key, $value, $expire = null)
    {
        self::$store[$key] = [
            'type' => $type,
            'value' => $value,
            'expire' => $expire
        ];
    }
public function set ( $ type , $ key , $ value , $ expire = null ) { self :: $ store [ $ key ] = [ 'type' => $ type , 'value' => $ value , 'expire' => $ expire ] ; }
Save a value to the data store.

@param string $type The data type.
@param string $key The key.
@param mixed $value The value.
@param int|null $expire The expiration time (unix timestamp), or null if it never expires.
Save a value to the data store .