Class BlogCacheManager.FuturePostCache

    • Constructor Detail

      • FuturePostCache

        public FuturePostCache()
        Construct a AllPostCache instance.
    • Method Detail

      • getPost

        public BlogCacheManager.Post getPost​(String id)
        Test if a post exists, provided its ID.
        Parameters:
        id - the post content ID.
        Returns:
        true if the post exists.
      • hasPost

        public boolean hasPost​(String id)
        Test if a post exists, provided its ID.
        Parameters:
        id - the post content ID.
        Returns:
        true if the post exists.
      • addPost

        public void addPost​(Content content)
        Add a post to the cache.
        Parameters:
        content - the post content.
      • removePost

        public void removePost​(Content content)
        Remove a post from the cache.
        Parameters:
        content - the post content to remove from the cache.
      • removePost

        public void removePost​(BlogCacheManager.Post post)
        Remove a post from the cache.
        Parameters:
        post - the post content to remove from the cache.
      • clear

        public void clear()
        Clear the cache.