# Functions
New returns a new cache handler with the database opened.
WithCacheDir specifies a personalized cache directory.
WithOfflineCredentialsExpiration allows to change the number of days the user can log in without online verification.
WithRootGID allows to change current Root Guid for tests.
WithRootUID allows to change current Root Uid for tests.
WithShadowGID allow change current Shadow Gid for tests.
WithShadowMode allow to override current Shadow Gid for tests.
WithTeardownDuration allows to change current Shadow Gid for tests.
# Variables
DefaultCredentialsExpiration is the default number of days the user is allowed to login without online revalidation.
ErrNoEnt is returned when there is no entries.
ErrOfflineAuthDisabled is returned when offline authentication is disabled by using a negative value in aad.conf.
ErrOfflineCredentialsExpired is returned when the user offline credentials is expired.
PasswdQueryAttributes returns a list of attributes that can be queried in the passwd table.
PasswdSQLForTests is the sql used to create the passwd database.
PasswdUpdateAttributes returns a list of attributes that can be modified in the passwd table.
ShadowSQLForTests is the sql used to create the shadow database.
# Structs
Cache is the cache object, wrapping our database.
GroupRecord returns a group record from the cache.
ShadowRecord returns a shadow record from the cache.
UserRecord returns a user record from the cache.
# Type aliases
Option represents the functional option passed to cache.