Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/defp/ssdb-elixir
ssdb client for elixir
https://github.com/defp/ssdb-elixir
elixir ssdb-client
Last synced: 4 days ago
JSON representation
ssdb client for elixir
- Host: GitHub
- URL: https://github.com/defp/ssdb-elixir
- Owner: defp
- License: apache-2.0
- Archived: true
- Created: 2014-06-25T16:15:45.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2020-03-05T01:47:36.000Z (over 4 years ago)
- Last Synced: 2024-04-15T22:26:20.700Z (7 months ago)
- Topics: elixir, ssdb-client
- Language: Elixir
- Homepage: https://hex.pm/packages/ssdb
- Size: 30.3 KB
- Stars: 5
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- freaking_awesome_elixir - Elixir - ssdb client for Elixir, with focus on performance. (ORM and Datamapping)
- fucking-awesome-elixir - ssdb_elixir - ssdb client for Elixir, with focus on performance. (ORM and Datamapping)
- awesome-elixir - ssdb_elixir - ssdb client for Elixir, with focus on performance. (ORM and Datamapping)
README
SSDB client
==============[![Build Status](https://travis-ci.org/lidashuang/ssdb-elixir.svg?branch=master)](https://travis-ci.org/lidashuang/ssdb-elixir)
SSDB client for Elixir
## Installation
Releases are published through [hex.pm](https://hex.pm/). Add as a dependency in your mix.exs file:
```elixir
defp deps do
[ { :ssdb, "~> 0.3.0" } ]
end
```## Example:
```elixir
Interactive Elixir (1.0.2) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> {:ok, pid} = SSDB.start
{:ok, #PID<0.79.0>}
iex(2)> SSDB.query pid, ["set", "ssdb", "cool"]
{:ok, ["1"]}
iex(3)> SSDB.query ["get", "ssdb"]
{:ok, ["cool"]}
iex(4)> SSDB.query ["exists", "ssdb"]
{:ok, ["1"]}
iex(5)>
```