Class CachedStrategy

java.lang.Object
com.glideapi.session.CachedStrategy
All Implemented Interfaces:
SessionStrategy

public class CachedStrategy extends Object implements SessionStrategy
Session strategy that maintains a single cached session across all threads. This provides the best performance but requires thread-safe usage. The session is shared globally, minimizing token generation overhead. Best for: Single-threaded applications or when you can guarantee thread-safe access.