Current section

Files

Jump to
nebulex lib nebulex cache queryable.ex
Raw

lib/nebulex/cache/queryable.ex

defmodule Nebulex.Cache.Queryable do
@moduledoc false
@default_page_size 10
@doc """
Implementation for `c:Nebulex.Cache.all/2`.
"""
def all(cache, query, opts) do
cache.__adapter__.all(cache, query, opts)
end
@doc """
Implementation for `c:Nebulex.Cache.stream/2`.
"""
def stream(cache, query, opts) do
opts = Keyword.put_new(opts, :page_size, @default_page_size)
cache.__adapter__.stream(cache, query, opts)
end
end