Webmozart\KeyValueStore\Api\KeyValueStore::keys PHP Method

keys() public method

If the backend of the store cannot be read, a {@link ReadException} is thrown. You should always handle this exception in your code: php try { foreach ($store->keys() as $key) { ... } } catch (ReadException $e) { read failed }
public keys ( ) : array
return array The keys stored in the store. Each key is either a string or an integer. The order of the keys is undefined.
    public function keys();

Usage Example

 /**
  * {@inheritdoc}
  */
 public function keys()
 {
     return $this->store->keys();
 }