Skip to content

wniemiec-data-java/session

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Session

Session manager that stores information obtained at run time.

Coverage status Java compatibility Maven Central release License


❇ Introduction

Session manager that stores information obtained at run time. It allows different processes and threads to have access to this information. There are two types of session:

  • Normal - disk storage
  • Shared - storage in class data memory

❓ How to use

  1. Add one of the options below to the pom.xml file:

Using Maven Central (recomended):

<dependency>
  <groupId>io.github.wniemiec-data-java</groupId>
  <artifactId>session</artifactId>
  <version>LATEST</version>
</dependency>

Using GitHub Packages:

<dependency>
  <groupId>wniemiec.data.java</groupId>
  <artifactId>session</artifactId>
  <version>LATEST</version>
</dependency>
  1. Run
$ mvn install
  1. Use it
[...]

import wniemiec.data.java.Session;

[...]

Pair<String, String> example = Pair.of("Hello", "World");

System.out.println( example.getFirst() + " " + example.getSecond() );

📖 Documentation

Method Type Description Default
save{,shared} key: String, value: Object: void Stores data in the current session. -
read{,shared} key: String: Object Gets data from the current session. -
remove{,shared} key: String: void Removes data from the current session. -
hasKey{,shared} key: String: boolean Checks if there is data stored in the session with the specified key. -
destroy{,shared} void: boolean Deletes the session. -

🚩 Changelog

Details about each version are documented in the releases section.

🤝 Contribute!

See the documentation on how you can contribute to the project here.

📁 Files

/

Name Type Description
dist Directory Released versions
docs Directory Documentation files
src Directory Source files

About

Session manager that stores information obtained at run time.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages