private static long getMaxLifetimeFromProperty(CacheInfo cacheInfo) {
        String lifetimeProp = cacheInfo.getParams().get("back-expiry");
        if (lifetimeProp != null) {
            if ("0".equals(lifetimeProp)) {
                return -1L;
            }
            long factor = 1;
            if (lifetimeProp.endsWith("m")) {
                factor = Duration.ofMinutes(1).toMillis();
            }
            else if (lifetimeProp.endsWith("h")) {
                factor = Duration.ofHours(1).toMillis();
            }
            else if (lifetimeProp.endsWith("d")) {
                factor = Duration.ofDays(1).toMillis();
            }
            try {
                return Long.parseLong(lifetimeProp.substring(0, lifetimeProp.length()-1)) * factor;
            }
            catch (NumberFormatException nfe) {
                Log.warn("Unable to parse back-expiry for cache: " + cacheInfo.getCacheName());
            }
        }
        // Return default
        return CacheFactory.DEFAULT_MAX_CACHE_LIFETIME;
    }
Unregisters all caches for the given plugin.

@param pluginName the name of the plugin whose caches will be unregistered.
xmppserver/src/main/java/org/jivesoftware/openfire/container/PluginCacheRegistry.java