add swig cache spport