• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

whitfin / cachex / 64ffdb79131a3eb9e15e483ea81eedd63160a005-PR-426

30 Oct 2025 04:39AM UTC coverage: 99.042% (-1.0%) from 100.0%
64ffdb79131a3eb9e15e483ea81eedd63160a005-PR-426

Pull #426

github

whitfin
Remove tagging from inspection and commands
Pull Request #426: Simplify and naturalize API signatures and return types

68 of 74 new or added lines in 25 files covered. (91.89%)

2 existing lines in 2 files now uncovered.

827 of 835 relevant lines covered (99.04%)

1054.5 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

80.0
/lib/cachex/actions/export.ex
1
defmodule Cachex.Actions.Export do
2
  @moduledoc false
3
  # Command module to allow exporting all cache entries as a list.
4
  #
5
  # This command is extremely expensive as it turns the entire cache table into
6
  # a list, and so should be used sparingly. It's provided purely because it's
7
  # the backing implementation of the `Cachex.save/3` command.
8
  alias Cachex.Query
9

10
  # add required imports
11
  import Cachex.Spec
12

13
  ##############
14
  # Public API #
15
  ##############
16

17
  @doc """
18
  Retrieves all cache entries as a list.
19

20
  This action should only be used in the case of exports and/or debugging, due
21
  to the memory overhead involved, as well as the large concatenations.
22
  """
23
  def execute(cache() = cache, _options) do
24
    query = Query.build()
11✔
25
    options = const(:local) ++ const(:notify_false)
11✔
26

27
    case Cachex.stream(cache, query, options) do
11✔
28
      {:error, _reason} = error ->
NEW
29
        error
×
30

31
      stream ->
32
        Enum.to_list(stream)
11✔
33
    end
34
  end
35
end
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc