Is caching implemented in the .NET version of iBatis.
I have tried several scenarious and it always looks to be going back to the
database. I have resorted to cutting and pasting the cacheModels section
from the iBatis examples and still it does not cache? here is what I have: <?xml version="1.0" encoding="UTF-8" ?> <sqlMap namespace="Request" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="SqlMap.xsd"> <alias> <typeAlias alias="Reason" assembly="Autodesk.Consulting.MoveManager.Core.dll" type="Autodesk.Consulting.MoveManager.Core.Data.ReasonLookup" /> </alias> <cacheModels> <cacheModel id="ProductList-cache" implementation="MEMORY" > <flushInterval hours="24"/> <property name="Type" value="Weak"/> </cacheModel> </cacheModels> <resultMaps> <resultMap id="ReasonResult" class="Reason"> <result property="Code" column="CODE"/> <result property="Description" column="DESCRIPTION"/> </resultMap> </resultMaps> <!-- ============================================= MAPPED STATEMENTS =============================================
--> <statements> <select id="getReasons" cacheModel="ProductList-cache" resultMap="ReasonResult" > SELECT
InitCap(CODE)
CODE, DESCRIPTION
FROM
RQST_REASON_FOR_MOVE_LUT </select> </statements> </sqlMap> What am I
missing??? Thanks, Joe |
- Re: Caching Joe Chandler
- Re: Caching Ron Grabowski
- Can't open connection Jean Guillaume LALANNE
- RE: Caching Joe Chandler