#1 Cache

已关闭
isundil9 年之前创建 · 0 条评论
isundil 评论于 9 年之前

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 名参与者
正在加载...
取消
保存
这个人很懒,什么都没留下。