mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-21 22:04:31 -04:00
less intrusive cache prevention.
more tests.
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
using System.Linq;
|
||||
using Db4objects.Db4o.Internal;
|
||||
using Db4objects.Db4o.Internal.References;
|
||||
|
||||
namespace NzbDrone.Core.Datastore
|
||||
{
|
||||
public class NoCacheReferenceSystem : HashcodeReferenceSystem
|
||||
{
|
||||
public override ObjectReference ReferenceForId(int id)
|
||||
{
|
||||
//never return an in memory instance of objects as query result. always go to db.
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user