#1 Cache

Cerrada
abierta hace 9 años 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
isundil mencionada esta incidencia en un commit hace 9 años
Inicie sesión para unirse a esta conversación.
Sin etiquetas
Sin Milestone
Sin asignado
1 participantes
Cargando...
Cancelar
Guardar
Aún no existe contenido.