Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

update spec

[ci skip]
  • Loading branch information...
commit 09cac3225cd69af701bc805de128e1ea6b3e839a 1 parent 08d4bcb
@minad authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 SPEC.md
View
8 SPEC.md
@@ -59,6 +59,14 @@ It MUST return true if the value was created.
Completely empty all keys and values from the key-value-store. Adapters MAY allow a namespace during initialization, which can scope this operation to a particular subset of keys. After calling <code>clear</code>, a <code>[]</code> operation MUST return nil for every possible key, and a <code>key?</code> query MUST return false for every possible key.
+### <code>close</code>
+
+Closes the store
+
+### <code>features => Array&lt;Symbol&gt;</code> and <code>supports?(Symbol) => [TrueClass, FalseClass]</code>
+
+Feature detection. Adapters MUST return <code>:create</code> and <code>:increment</code> if these methods are supported.
+
## Additional Options Hashes
The following methods may all take an additional Hash as a final argument. This allows the client to send additional options which can be specified by the adapter (and which may be specified by extensions to this specification). The methods MUST NOT modify the supplied option hash.
Please sign in to comment.
Something went wrong with that request. Please try again.