#1 Cache

Cerrada
aberta %!s(int64=9) %!d(string=hai) anos por isundil · 0 comentarios

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
Accede para unirte á conversa.
Sen etiquetas
Sen fito
Sen asignado
1 participantes
Cargando...
Cancelar
Gardar
Aínda non existe contido.