All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.crazycake.shiro.common.SessionInMemory Maven / Gradle / Ivy

package org.crazycake.shiro.common;

import org.apache.shiro.session.Session;

import java.util.Date;

/**
 * Use ThreadLocal as a temporary storage of Session, so that shiro wouldn't keep read redis several times while a request coming.
 */
public class SessionInMemory {
    private Session session;
    private Date createTime;

    public Session getSession() {
        return session;
    }

    public void setSession(Session session) {
        this.session = session;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy