Method Sql.pgsql()->setcachedepth() Method setcachedepth final int setcachedepth(void|int newdepth) Parameter newdepth Sets the new cachedepth for automatic caching of prepared statements. Returns The previous cachedepth. Note This function is PostgreSQL-specific.