我使用的是Spring的缓存注释。我想要从applicationContextfile传递缓存@CacheEvict(name="vendorCache")的名称,或者可以用任何其他方式配置它。
现在我有了两个类VendorDAo和NetworkDao的场景。
public VenderDAO
{
@CacheEvict(name="vendorCache")
public String insert():void
{
//code to add the record into the table using ibatis
}
}
public Ne
我试图在我的项目中使用这个库,但是当我将.h/.m文件导入到我的项目中时,当我尝试缓存我的PFObjects [cache setObject:myPFObject forKey:@"PFObjectID"];时,它仍然抛出一个警告
"Sending 'PFObject *const_strong' to parameter of incompatible type 'id <\NSCoding>'"
有没有其他人试图使用这个库,并取得了任何成功?
可能重复:
好吧,这让我发疯了。List<T>实现了IList<T>。然而,
IList<int> list = new List<int>();
bool b = list.IsReadOnly;
bool c = ((List<int>)list).IsReadOnly; // Error
错误是:
'System.Collections.Generic.List‘不包含'IsReadOnly’的定义,也找不到接受'System.Collections.Generic.List‘类型的第一个参