Beispiel #1
0
        public virtual UUID UpdateContent(UUID id, byte[] data)
        {
            if (m_doRemoteOnly)
            {
                object remoteValue = DoRemoteByURL("AssetServerURI", id, data);
                return(remoteValue != null ? (UUID)remoteValue : UUID.Zero);
            }

            UUID newID;

            m_database.UpdateContent(id, data, out newID);
            IImprovedAssetCache cache = m_registry.RequestModuleInterface <IImprovedAssetCache>();

            if (doDatabaseCaching && cache != null)
            {
                cache.Expire(id.ToString());
            }
            return(newID);
        }
Beispiel #2
0
 public virtual bool UpdateContent(UUID id, byte[] data, out UUID newID)
 {
     m_database.UpdateContent(id, data, out newID);
     return(true);
 }