<?php

abstract class N2CacheStorage {

    protected $paths = array();

    public function __construct() {
        $this->paths['web']    = 'web';
        $this->paths['notweb'] = 'notweb';
        $this->paths['image']  = 'image';
    }

    public function isFilesystem() {
        return false;
    }

    public abstract function clear($group, $scope = 'notweb');

    public abstract function exists($group, $key, $scope = 'notweb');

    public abstract function set($group, $key, $value, $scope = 'notweb');

    public abstract function get($group, $key, $scope = 'notweb');

    public abstract function remove($group, $key, $scope = 'notweb');

    public abstract function getPath($group, $key, $scope = 'notweb');
}