PHP Class Stash\Driver\FileSystem\NativeEncoder

Inheritance: implements Stash\Driver\FileSystem\EncoderInterface
显示文件 Open project: tedivm/stash

Public Methods

Method Description
deserialize ( $path )
getExtension ( )
serialize ( $key, $data, $expiration = null )

Protected Methods

Method Description
encode ( string $data ) : string Finds the method of encoding that has the cheapest decode needs and encodes the data with that method.

Method Details

deserialize() public method

public deserialize ( $path )

encode() protected method

Finds the method of encoding that has the cheapest decode needs and encodes the data with that method.
protected encode ( string $data ) : string
$data string
return string

getExtension() public method

public getExtension ( )

serialize() public method

public serialize ( $key, $data, $expiration = null )