View Source Vela Vela    Kantox ❤ OSS  Test  Dialyzer

The tiny library to ease handling expiring invalidated cached series

Installation

def deps do
  [
    {:vela, "~> 0.12"}
  ]
end

Changelog

  • 1.1.0 — remove Boundary dependency
  • 1.0.2 — fixed update_meta/3
  • 1.0.1 — fixed different Access implementations for __meta__: argument to use Vela
  • 1.0.0 — cleaned up the code, introduced interfaces, example as docs
  • 0.17.0 — type VelaImpl.slice() + many docs improvements
  • 0.16.1Vela.merge/3
  • 0.16.0Vela.empty?/1, Vela.empty!/1 and some performance improvements in Vela.equal?/2
  • 0.15.3 — allow all metas to reside in state
  • 0.15.2 — less restrictive slice/2, accepting malformed velas
  • 0.15.0:mη keyword parameter in a call to use Vela has been renamed to :__meta__ as Elixir v1.14 does not support mixed scripts (meh)
  • 0.14.0average/2 to produce a keyword of {serie, average} values
  • 0.13.1state/1 and update_state/2 to keep some additional date alongside with Vela
  • 0.12.0threshold does not depend on the band anymore
  • 0.11.0__meta__ might be now used to overwrite compiled in serie settings
  • 0.9.5 — early return the value provided by existing comparison function in equal?/2
  • 0.9.3 — allow :atom and {GenServer, :on_start} as type definition
  • 0.9.0 — allow a precise type definition of each serie via type: type() keyword parameter a series keyword parameter
  • 0.8.0 — allow a corrector/2 callback to allow correction of rejected values as a series keyword parameter
  • 0.7.2 — Vela.put/3
  • 0.7.0 — exact type and behaviour for those using Vela
  • 0.6.3 — fix threshold to use compare_by/1 for cumbersome values
  • 0.6.1 — use threshold to prevent adding outliers to series
  • 0.6.0 — Vela.δ/2 / Vela.delta/2 returning a keyword [{serie, {min, max}}]

Documentation