Skip to content

How to use the PDCache java? #2

Open

Description

@TheLogan6

First I use 'java -jar PDCache_all.jar' in ./jar directory .It went wrong with messages "Error: Invalid or corrupt jarafile PDCache_all.jar"
Then I use mvn tools to reinstall "mvn clean install" It also went wrong.
I am very curious.

Activity

  1. fybug commented on Mar 18, 2024

    @fybug
    Collaborator

    Wow, I'm sorry for replying late because I still have some obstacles in accessing GitHub. The content was translated using Baidu Translate,
    I really didn't expect anyone to use my library. This project was created as a dependency library and cannot be run directly through java -jar
    Just download PDCache.jar from the latest tag in releases
    And as a dependency, it can be used in the project.
    Its main function is to create an object used as a cache. Apart from some cache objects that are not used in the current environment, my main use is a self generated cache object that can be generated by specifying the generation method during construction. When the Java Reference object is triggered, the cache content is cleared without checking or manually putting it in. Instead, it can directly get () to obtain the corresponding content, because you have already specified the self generated method during construction. When it is cleared, using get () will call the self generated method to regenerate the cache content without checking whether it has been cleared and then calling the put () method again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions