From 34bf2e80ae249bcf49702e358aa0367b39aa8e2a Mon Sep 17 00:00:00 2001 From: Isaac Whitfield Date: Thu, 31 Jan 2019 15:41:30 -0800 Subject: [PATCH] Fix some bad spec types --- lib/cachex.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cachex.ex b/lib/cachex.ex index 56358c47..c1727aa7 100644 --- a/lib/cachex.ex +++ b/lib/cachex.ex @@ -625,7 +625,7 @@ defmodule Cachex do { :ok, [ { :entry, "key", 1538714590095, nil, "value" } ] } """ - @spec export(cache, Keyword.t) :: { status, [ cache ] } + @spec export(cache, Keyword.t) :: { status, [ Spec.entry ] } def export(cache, options \\ []) when is_list(options), do: Router.call(cache, { :export, [ options ] }) @@ -770,7 +770,7 @@ defmodule Cachex do { :ok, true } """ - @spec import(cache, [ Spec.entry ], Keyword.t) :: { status, [ cache ] } + @spec import(cache, [ Spec.entry ], Keyword.t) :: { status, any } def import(cache, entries, options \\ []) when is_list(entries) and is_list(options), do: Router.call(cache, { :import, [ entries, options ] })