Example #1
0
        public UserAccount GetUserAccount(UUID scopeID, UUID userID)
        {
            bool        inCache = false;
            UserAccount account = m_Cache.Get(userID, out inCache);

            if (inCache)
            {
                return(account);
            }

            account = UserAccountService.GetUserAccount(scopeID, userID);
            m_Cache.Cache(userID, account);

            return(account);
        }
        public override UserAccount GetUserAccount(UUID scopeID, UUID userID)
        {
            bool        inCache = false;
            UserAccount account;

            account = m_Cache.Get(userID, out inCache);
            if (inCache)
            {
                return(account);
            }

            account = base.GetUserAccount(scopeID, userID);
            m_Cache.Cache(userID, account);

            return(account);
        }