Package org.apache.archiva.redback.components.cache

Examples of org.apache.archiva.redback.components.cache.Cache.clear()


        {
            throw new ArchivaRestServiceException( "no cache for key: " + cacheKey,
                                                   Response.Status.BAD_REQUEST.getStatusCode(), null );
        }

        cache.clear();
        return Boolean.TRUE;
    }

    @Override
    public Boolean clearAllCaches()
View Full Code Here


    public String flush()
    {
        if( !StringUtils.isEmpty( cacheKey ) )
        {
            Cache cache = caches.get( cacheKey );
            cache.clear();
        }

        return SUCCESS;
    }
View Full Code Here

        {
            throw new ArchivaRestServiceException( "no cache for key: " + cacheKey,
                                                   Response.Status.BAD_REQUEST.getStatusCode(), null );
        }

        cache.clear();
        return Boolean.TRUE;
    }

    public Boolean clearAllCaches()
        throws ArchivaRestServiceException
View Full Code Here

        {
            throw new ArchivaRestServiceException( "no cache for key: " + cacheKey,
                                                   Response.Status.BAD_REQUEST.getStatusCode(), null );
        }

        cache.clear();
        return Boolean.TRUE;
    }

    public Boolean clearAllCaches()
        throws ArchivaRestServiceException
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.