public function rename($from, $to)
    {
        // TODO: add directories support

        $contents = self::cache()->get($from);
        if (false === $contents) {
            return false;
        }

        self::cache()->delete($from);
        self::cache()->set($to, $contents);

        return true;
    }
public function rename($from, $to)
    {
        // TODO: add directories support

        $contents = self::cache()->get($from);
        if (false === $contents) {
            return false;
        }

        self::cache()->delete($from);
        self::cache()->set($to, $contents);

        return true;
    }
public function rename ( $ from , $ to ) { // TODO: add directories support $ contents = self :: cache ( ) -> get ( $ from ) ; if ( false === $ contents ) { return false ; } self :: cache ( ) -> delete ( $ from ) ; self :: cache ( ) -> set ( $ to , $ contents ) ; return true ; }
Renames a storage object.

@return true if the object was renamed, false otherwise
Renames a storage object .