View Source Pockets.Table (Pockets v1.4.0)

A simple struct that we store for each Pockets table so that we can nicely map what you use to refer to your Pockets table and what the behind-the-scenes library uses to refer to the table.

  • alias: what you (the developer) uses to refer to your Pocket tables.
  • tid: the table identifier: i.e. what the library uses to identify the table.
  • library: denotes either :ets or :dets
  • type : the type of storage. :bag | :duplicate_bag | :set

Link to this section Summary

Link to this section Types

@type t() :: %Pockets.Table{
  alias: atom(),
  library: :ets | :dets,
  opts: keyword(),
  tid: Pockets.alias(),
  type: atom()
}