MavuBuckets.GarbageCollector (MavuBuckets v1.1.3) View Source

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Get max amount of items to be pruned in one run

Get count of items to be pruned,

Get all items to be pruned, ordered by persistence_level

Get size of all items to be pruned,

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

do_garbage_collect(opts \\ [])

View Source
Link to this function

format_as_mb(size_in_bytes)

View Source

Get max amount of items to be pruned in one run

Link to this function

get_items_count(opts \\ [])

View Source

Get count of items to be pruned,

Link to this function

get_items_query(opts \\ [])

View Source

Get all items to be pruned, ordered by persistence_level

Options

  • :type - type of query, :query_all or :prune_more (default: :prune_default)
Link to this function

get_items_size(opts \\ [])

View Source

Get size of all items to be pruned,

## Options

* `:human_readable` - return size in human readable format (default: true)