backend.hrl 571 B

12345678910111213
  1. -ifndef(BACKEND_HRL).
  2. -define(BACKEND_HRL, true).
  3. -define(BACKEND, [get/2,put/1,delete/2,index/3,dump/0,start/0,stop/0,destroy/0,
  4. join/1,dir/0,create_table/2,add_table_index/2,seq/2,all/1,count/1,version/0]).
  5. -compile({no_auto_import,[get/1,put/2]}).
  6. -spec put(tuple() | list(tuple())) -> ok | {error,any()}.
  7. -spec get(term() | any(), any()) -> {ok,any()} | {error,not_found}.
  8. -spec delete(term(), any()) -> ok | {error,not_found}.
  9. -spec dump() -> ok.
  10. -spec start() -> ok.
  11. -spec stop() -> ok.
  12. -spec index(term(), any(), any()) -> list(tuple()).
  13. -endif.