Este contenido no está disponible en el idioma seleccionado.
16.6. Mortal and Immortal Data
16.6.1. About Data Mortality Copiar enlaceEnlace copiado en el portapapeles!
Copiar enlaceEnlace copiado en el portapapeles!
In addition to storing entities, JBoss Data Grid allows you to attach mortality information to data. For example, using the standard
put(key, value) creates an entry that will never expire, called an immortal entry. Alternatively, an entry created using put(key, value, lifespan, timeunit) is a mortal entry that has a specified fixed life span, after which it expires.
In addition to the
lifespan parameter, JBoss Data Grid also provides a maxIdle parameter used to determine expiration. The maxIdle and lifespan parameters can be used in various combinations to set the life span of an entry.