Skip to content
Sections
>> Trisquel >> 套件 >> etiona >> perl >> libchi-memoize-perl
etiona  ] [  nabia  ] [  aramo  ]
[ 原始碼: libchi-memoize-perl  ]

套件: libchi-memoize-perl (0.07-1)

memoization implementation backed by CHI

CHI::Memoize is an implementation of the memoization technique using CHI. Memoize caches the inputs and outputs of a function, if the function is called again with the same inputs, CHI::Memoize intervenes and provides the cached result. For slow functions, time is saved, at the expence of space.

CHI::Memoize provides the same facility as Memoize|Memoize, but backed by CHI|CHI. This means, among other things, that you can:

 * specify expiration times (expires_in) and conditions (expire_if)
 * memoize to different backends, e.g. File, Memcached, DBI, or to multilevel
   caches
 * handle arbitrarily complex function arguments (via CHI key serialization)

For a bit of history and motivation, see

http://www.openswartz.com/2012/05/06/memoize-revisiting-a-twelve-year-old-api

其他與 libchi-memoize-perl 有關的套件

  • 依賴
  • 推薦
  • 建議
  • dep: libchi-perl
    Unified Cache Handling Interface
  • dep: libhash-moreutils-perl
    module with extra hash functions not found in Hash::Util
  • dep: libmoo-perl
    Minimalist Object Orientation library (with Moose compatibility)
  • dep: perl
    Larry Wall's Practical Extraction and Report Language

下載 libchi-memoize-perl

下載可用於所有硬體架構的
硬體架構 套件大小 安裝後大小 檔案
all 13.1 kB36 kB [文件列表]