LP#1234816: improve const-correctness of osrfCachePutString and osrfCachePutObject