Skip to content

Commit

Permalink
Merge pull request nirvana#18 from splatte/flush_bucket
Browse files Browse the repository at this point in the history
add "flush" functionality
  • Loading branch information
n1rvana committed Feb 7, 2016
2 parents d605c2f + 94afb19 commit 25dfcc3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/couchie.ex
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,16 @@ defmodule Couchie do
:cberl.remove(connection, key)
end

@doc """
Empty the contents of the specified bucket, deleting all stored data.
## Example
Couchie.flush(:connection)
"""
def flush(connection) do
:cberl.flush(connection)
end

@doc """
Delete document. Key should be binary.
## Example
Expand Down

0 comments on commit 25dfcc3

Please sign in to comment.