Overview

Namespaces

  • Webmozart
    • KeyValueStore
      • Api
      • Decorator
      • Util

Interfaces

  • CountableStore
  • KeyValueStore
  • SortableStore

Exceptions

  • InvalidKeyException
  • NoSuchKeyException
  • ReadException
  • SerializationFailedException
  • UnserializationFailedException
  • UnsupportedValueException
  • WriteException
  • Overview
  • Namespace
  • Class
 1:  2:  3:  4:  5:  6:  7:  8:  9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 
<?php

/*
 * This file is part of the webmozart/key-value-store package.
 *
 * (c) Bernhard Schussek <bschussek@gmail.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Webmozart\KeyValueStore\Api;

/**
 * A countable key-value store.
 *
 * In addition of the properties of a classical store, a countable store
 * has the ability to count its keys.
 *
 * @since  1.0
 *
 * @author Bernhard Schussek <bschussek@gmail.com>
 * @author Titouan Galopin <galopintitouan@gmail.com>
 */
interface CountableStore extends KeyValueStore
{
    /**
     * Count the number of keys in the store.
     *
     * @throws ReadException If the store cannot be read.
     */
    public function count();
}
Webmozart Key-Value Store API API documentation generated by ApiGen