#1 Cache

已關閉
isundil9 年之前創建 · 0 條評論

Cached entities:

  • CacheVersion:

    Just contains an pair of ints.

    The first one represents the data version, if outdated, the cache should be cleared.

    The seconds represents the last yymmdd where the data were loaded.

    If the cached yymmdd is different than today's, the cache should be refreshed (eg. remove cached entities if removed on disk, add added values).

    The purpose of indexVersion is to manage multi-instance server or external modifications.

    Should have one entity at once.

    • Key: CACHEVERSION
    • Value: array
      • codeVersion int incr
      • indexVersion int yymmdd

  • CachedIndex:

    Contains an array of all existing images.

    Sould have one entity at once.

    The array will be a sorted set of ids, as integer

    • Key: CACHEINDEX
    • value: SortedSet
  • CachedFlammenkuchen:

    Contains meta about the image

    We should have one per image

    Should be created at creation of CachedIndex, but lazily populated, OR created when post is done.

    • key: meta_ {id}
    • value: An object containing
      • The title (String)
      • The description (String)
      • An md5sum of the base64 encoded image
Cached entities: - CacheVersion: > Just contains an pair of ints. > > The first one represents the data version, if outdated, the cache should be cleared. > > The seconds represents the last yymmdd where the data were loaded. > > If the cached yymmdd is different than today's, the cache should be refreshed (eg. remove cached entities if removed on disk, add added values). > > The purpose of indexVersion is to manage multi-instance server or external modifications. > > Should have one entity at once. > > - *Key*: _CACHEVERSION_ > - *Value*: array > - *codeVersion* int incr > - *indexVersion* int yymmdd - CachedIndex: > Contains an array of all existing images. > > Sould have one entity at once. > > The array will be a sorted set of ids, as integer > > - *Key*: _CACHEINDEX_ > - *value*: SortedSet<int> - CachedFlammenkuchen: > Contains meta about the image > > We should have one per image > > Should be created at creation of CachedIndex, but lazily populated, OR created when post is done. > > - *key*: meta_ {id} > - *value*: An object containing > - The title (String) > - The description (String) > - An md5sum of the base64 encoded image
isundil 在代碼提交 9 年之前 中引用了該問題
isundil9 年之前 關閉
登入 才能加入這對話。
未選擇標籤
未選擇里程碑
未指派成員
1 參與者
正在加載...
取消
保存
尚未有任何內容