Class AbstractDecorator
	
	A delegating decorator delegate each call of a KeyValueStore method
to the internal store.
It is used by decorators that need to override only a few specific
methods (such as SortableDecorator or CountableDecorator).
	 
	
		- 
Webmozart\KeyValueStore\Decorator\AbstractDecorator			
			 implements 
				Webmozart\KeyValueStore\Api\KeyValueStore
			
			
		
	Methods summary
	
		| 
			 public 
			
			
			 |  | 
	
		| 
			 public 
			
			
			 | 
		#
		set( integer|string $key, mixed $value )
			Sets the value for a key in the store. 
			Sets the value for a key in the store. Parameters
					$keyThe key to set.$valueThe value to set for the key.Throws
					WriteException If the store cannot be written. 
					InvalidKeyException If the key is not a string or integer. 
					SerializationFailedException If the value cannot be serialized. 
					UnsupportedValueException If the value is not supported by the
                                     implementation.Implementation of | 
	
		| 
			 public 
			mixed
			
			 | 
		#
		get( integer|string $key, mixed $default = null )
			Returns the value of a key in the store. 
			Returns the value of a key in the store. Parameters
					$keyThe key to get.$defaultThe default value to return if the key does
                           not exist.Returns
					mixed The value of the key or the default value if the key does
              not exist.Throws
					ReadException If the store cannot be read. 
					InvalidKeyException If the key is not a string or integer. 
					UnserializationFailedException If the stored value cannot be
                                       unserialized.Implementation of | 
	
		| 
			 public 
			mixed
			
			 | 
		#
		getOrFail( integer|string $key )
			Returns the value of a key in the store. 
			Returns the value of a key in the store. ParametersReturns
					mixedThe value of the key.
 Throws
					ReadException If the store cannot be read. 
					NoSuchKeyException If the key was not found. 
					InvalidKeyException If the key is not a string or integer. 
					UnserializationFailedException If the stored value cannot be
                                       unserialized.Implementation of | 
	
		| 
			 public 
			array
			
			 | 
		#
		getMultiple( array $keys, mixed $default = null )
			Returns the values of multiple keys in the store. 
			Returns the values of multiple keys in the store. Parameters
					$keysThe keys to get. The keys must be strings or integers.$defaultThe default value to return for keys that are not
                      found.Returns
					arrayThe values of the passed keys, indexed by the keys.
 Throws
					ReadException If the store cannot be read. 
					InvalidKeyException If a key is not a string or integer. 
					UnserializationFailedException If a stored value cannot be
                                       unserialized.Implementation of | 
	
		| 
			 public 
			array
			
			 | 
		#
		getMultipleOrFail( array $keys )
			Returns the values of multiple keys in the store. 
			Returns the values of multiple keys in the store. Parameters
					$keysThe keys to get. The keys must be strings or integers.Returns
					arrayThe values of the passed keys, indexed by the keys.
 Throws
					ReadException If the store cannot be read. 
					NoSuchKeyException If a key was not found. 
					InvalidKeyException If a key is not a string or integer. 
					UnserializationFailedException If a stored value cannot be
                                       unserialized.Implementation of | 
	
		| 
			 public 
			boolean
			
			 | 
		#
		remove( integer|string $key )
			Removes a key from the store. 
			Removes a key from the store. ParametersReturns
					booleanReturns
 trueif a key was removed from the store. Throws
					WriteExceptionIf the store cannot be written.
 InvalidKeyException
 If the key is not a string or integer.
 Implementation of | 
	
		| 
			 public 
			boolean
			
			 | 
		#
		exists( integer|string $key )
			Returns whether a key exists. 
			Returns whether a key exists. ParametersReturns
					booleanWhether the key exists in the store.
 Throws
					ReadExceptionIf the store cannot be read.
 InvalidKeyException
 If the key is not a string or integer.
 Implementation of | 
	
		| 
			 public 
			
			
			 | 
		#
		clear( )
			Removes all keys from the store. 
			Removes all keys from the store. Throws
					WriteExceptionIf the store cannot be written.
 Implementation of | 
	
		| 
			 public 
			array
			
			 | 
		#
		keys( )
			Returns all keys currently stored in the store. 
			Returns all keys currently stored in the store. Returns
					array The keys stored in the store. Each key is either a string
              or an integer. The order of the keys is undefined.Throws
					ReadExceptionIf the store cannot be read.
 Implementation of |